15. Quizzes: Dependencies

Quizzes: Dependencies

What is the default folder where Maven store the dependencies?

SOLUTION: `~/.m2/repository`

How do we add a dependency to our maven project?

SOLUTION: Adding the dependency identifiers (`groupId`,`artifactId` and `version`) to the dependencies section within a `dependency` tag to the `pom.xml` file.

What is the purpose of test scope on dependencies?

SOLUTION: Have the dependency available for unit and integration tests but not for production code.

Why might your project could end up with two versions of the same dependency?

SOLUTION: Because two dependencies have the same transitive dependency but with different versions.